//
//  FavoritesTableViewCell.m
//  CapriceMusic
//
//  Created by dllo on 16/1/15.
//  Copyright © 2016年 MYX. All rights reserved.
//

#import "FavoritesTableViewCell.h"

@implementation FavoritesTableViewCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        self.myImageView = [[UIImageView alloc] initWithFrame:CGRectZero];
        self.myImageView.layer.cornerRadius = 12;
        self.myImageView.clipsToBounds = YES;
        [self addSubview:self.myImageView];
        
        self.mytitle = [[UILabel alloc] initWithFrame:CGRectZero];
        self.mytitle.textColor = [UIColor colorWithRed:30 / 255.0 green:195 / 255.0 blue:153 / 255.0 alpha:1.0];
        self.mytitle.numberOfLines = 0;
        [self addSubview:self.mytitle];
    }
    return self;
}

- (void)layoutSubviews {
    [super layoutSubviews];
    self.myImageView.frame = CGRectMake(0, 0, self.width / 2.2, self.height - 2);
    self.mytitle.frame = CGRectMake(self.myImageView.right + 5, 0, self.width - self.myImageView.width - 5, self.height);
}
- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
